package day07;

public class Test {
    public static void main(String[] args) {
//        int sum = 0;
//        int num = 5;
//        int ride = 1;
//        for (int i = 1; i <= num; i++) {
//            ride *= i;
//            sum += ride;
//        }
//        System.out.println(ride);
//        System.out.println(sum);

        for(int i=10000;i<=99999;i++) {
            Huiwen(i);
        };
            float f=3.14159555f;
        System.out.println(f);
    }
    //回文数5位数的个位和万位相等，十位与千位相等
    public static int Huiwen(int num) {
        int[] arr = new int[5];
        //12521
        arr[0] = num / 10000 % 10;//万
        arr[1]=num/1000%10;//千
        arr[3]=num/10%10;//十
        arr[4]=num%10;//个

        if(arr[0]==arr[4] && arr[1]==arr[3]){
            System.out.println(num);
            return num;

        }else
            return -1;

    }
}
